import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import member.domain.Member;
import member.model.service.MemberService;


public class MemberTest {

	public static void main(String[] args) throws Exception {
		//ApplicationContext객체 생성
		ApplicationContext rootContext = new ClassPathXmlApplicationContext("member/config/applicationContext.xml");
		//MemberService 객체 주입 받기
		MemberService service = (MemberService) rootContext.getBean("memberServiceImpl");
		List<Member> list= service.getMemberList();
		System.out.println("------------전체 회원 목록------------");
		for(Member m : list){
			System.out.println(m);
		}
	}
}









